<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>添加商品</title>
	<link rel="stylesheet" href="/Shopping/Public/Css/admin.css"/>
</head>
<body>
	<div id="header">
		<div class="top">
			<ul>
				<li><a href="<?php echo U('Login/loginOut');?>">❤退出❤</a></li>
				<li style="">欢迎您!<?php echo ($_SESSION['admin']['username']); ?></li>
			</ul>
		</div>
		<div class="h_main">
			<span>购物商城后台管理系统</span>
		</div>
	</div>
	<div id="middle"></div>
	<div class="main mt">
		<div class="m_left fl">
			<ul>
				<a href="<?php echo U('Goods/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>商品管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Cate/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>分类管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('User/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>用户管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Order/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>订单管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Comments/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>评论管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
				<a href="<?php echo U('Adver/index');?>">
					<li>
					<span class="left_ico"></span>
					<b>广告管理</b>
					<span class="right_ico"></span>
					</li>
				</a>
			</ul>
		</div>
	<div class="m_right fr">
		<div class="mright_m">
		
<div class="agoods_nav">
	<h3>添加商品</h3>
	<a href="<?php echo U('Goods/index');?>"><button style="width:80px;height:40px;border:none;background:#6CCCCB;float:right;margin-right:40px;margin-top:-44px;border-radius:10px;color:#2C6787;">返回</button></a>
</div>
		<br/>
		<form action="<?php echo U('Goods/add');?>" method="post" enctype="multipart/form-data" style="width:90%;margin:0 auto;">
			商品名:
				<input type="text" name="name" placeholder="填写商品名"/>
				<br/><br/>
			分 类 &nbsp;:
				<select name="cate_id">
					<?php if(is_array($list)): foreach($list as $key=>$val): ?><option value="<?php echo ($val['id']); ?>">
						<?php echo ($val['name']); ?>
					</option><?php endforeach; endif; ?>
				</select>
				<br/><br/>
			价 格 &nbsp;:
				<input type="text" name="price" placeholder="填写价格"/>
				<br/><br/>
			库 存 &nbsp;:
				<input type="text" name="stock" placeholder="填写库存量"/>
				<br/><br/>
			图 片 &nbsp;:
				<input type="file" name="pic"/>
				<br/><br/>
			描 述 &nbsp;:
				<textarea name="description" cols="20" rows="4"></textarea>
				<br/><br/>
			<input type="submit" value="添加" style="width:80px;height:40px; margin-left:100px;background:#6CCCCB;border:0;border-radius:10px;"/>
		</form>

		</div>
	</div>
</div>
<div class="clear"></div>
<div id="middle"></div>
<div id="footer">
	<p>Copyright&copy; 2016年 京ICP备11011334号</p>
</div>

</body>
</html>